import MarkdownIt from 'markdown-it'
import { decode } from 'js-base64'

const md = new MarkdownIt()

export default source => {
  const str = decode(source)
  return md.render(str)
}
